﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using System.Windows.Media.Imaging;

namespace DreamLand.UI.Silverlight.Views
{
    public partial class MultiPointQuiz : Page
    {
        public MultiPointQuiz()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void btnJoin_Click(object sender, RoutedEventArgs e)
        {
            string strKid = comboBox1.SelectionBoxItem.ToString();

            
            switch (strKid)
            {
                case "Lê Bảo Khanh":
                    imgKid23.Source = new BitmapImage(new Uri("/DreamLand.UI.Silverlight;component/Views/images/kids/kids_face.jpg", UriKind.Relative));
                    imgKid31.Source = new BitmapImage(new Uri("/DreamLand.UI.Silverlight;component/Views/images/kids/kids_face.jpg", UriKind.Relative));
                    break;
                case "Nguyễn Bảo Duy":
                    imgKid32.Source = new BitmapImage(new Uri("/DreamLand.UI.Silverlight;component/Views/images/kids/mobius2.jpg", UriKind.Relative));
                    imgKid41.Source = new BitmapImage(new Uri("/DreamLand.UI.Silverlight;component/Views/images/kids/mobius2.jpg", UriKind.Relative)); 
                    break;
                    
            }
        }

        private void btnNew_Click(object sender, RoutedEventArgs e)
        {

        }

    }
}
